
var r_str=argument0;
var  tmp;
if (argument1==1)
    global.chanel=ds_grid_create(4,0);
 
    tmp=jso_decode_list(r_str);
    var i=0;
  
      
    while (string(jso_list_get(tmp,i))!='0')
    {

   n=ds_grid_plus1(global.chanel);
    ds_grid_set(global.chanel,0,n,jso_list_lookup(tmp,i,1));
    ds_grid_set(global.chanel,1,n,jso_list_lookup(tmp,i,4));
    ds_grid_set(global.chanel,2,n,jso_list_lookup(tmp,i,3));
 
    ds_grid_set(global.chanel,3,n,real(jso_list_lookup(tmp,i,0)));
 
    i++;
    }

 ds_grid_sort(global.chanel,3,false); 
 
chanel_list.dy=0
if chanel_list.cnt<ds_grid_height(global.chanel) audio_play_sound(new_message,1,0);
chanel_list.cnt=ds_grid_height(global.chanel)



